﻿<UserControl x:Class="UserManager.Module.Views.UserManagerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:datacontrols="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
    xmlns:prism="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation">

    <StackPanel x:Name="LayoutRoot">
		<StackPanel.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF9CA48A"/>
				<GradientStop Color="#FFFFFFFF" Offset="1"/>
				<GradientStop Color="#FF0C214D" Offset="0.5"/>
			</LinearGradientBrush>
		</StackPanel.Background>

		<TextBlock Text="User Manager" TextWrapping="Wrap" FontSize="18" Foreground="#FF2F3806" Height="27" Width="126"/>

		<ListBox x:Name="UsersList" ItemsSource="{Binding Users}" 
                 SelectedItem="{Binding CurrentUser, Mode=TwoWay}"
                 Height="200" Background="{x:Null}" Foreground="White">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<StackPanel Orientation="Horizontal">
						<TextBlock Text="{Binding Name}"/>
					</StackPanel>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<datacontrols:DataForm x:Name="UserDataForm" 
                               ItemsSource="{Binding Users}"
                               CurrentItem="{Binding CurrentUser, Mode=TwoWay}" MinHeight="200" Background="{x:Null}" Foreground="White"/>
	</StackPanel>

</UserControl>
